using System.Data;

namespace Mite.Configuration
{
	public static class MiteEnvironmentExtensions
	{
		public static IDbConnection CreateConnection(this MiteEnvironment environment, IAdapter adapter)
		{
			return adapter.CreateConnection(environment.Host, environment.Database, environment.Username, environment.Password,
			                                environment.Options);
		}
	}
}